package com.jielihaofeng.chat.convert;

import com.jielihaofeng.chat.entity.ChatGroupUserEntity;
import com.jielihaofeng.chat.vo.ChatGroupUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 群组用户表
*
* @author 借力好风 949394048@qq.com
* @since 1.0.0 2022-07-22
*/
@Mapper
public interface ChatGroupUserConvert {
    ChatGroupUserConvert INSTANCE = Mappers.getMapper(ChatGroupUserConvert.class);

    ChatGroupUserEntity convert(ChatGroupUserVO vo);

    ChatGroupUserVO convert(ChatGroupUserEntity entity);

    List<ChatGroupUserVO> convertList(List<ChatGroupUserEntity> list);

}